<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/index.css" />
		<link rel="stylesheet" type="text/css" href="css/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="css/common/common.css" />
		<link rel="stylesheet" type="text/css" href="css/swiper.min.css"/>
		<script src="js/swiper.min.js"></script>
	</head>

	<body>
		<div class="web">
			<!--头-->
			<header>
				<div class="logo">
					<img src="img/index-logo.png" />
				</div>

				<div class="selectBar">
					<select name="">
						<option value="">广州</option>
						<option value="">北京</option>
						<option value="">上海</option>
						<option value="">深圳</option>
					</select>
				</div>

				<div class="searchbar">
					<input type="search" name="" id="" value="" placeholder="请输入商品名称" />
					<i class="iconfont icon-fangdajing"></i>
				</div>

				<div class="clear"></div>
			</header>

			<!--主体-->
			<section>
				<!--轮播图-->
				<div class="slideshow">
					<div class="swiper-container">
						<div class="swiper-wrapper">
							<div class="swiper-slide">
								<img src="img/lunbo.jpg"/>
							</div>
							<div class="swiper-slide">
								<a href="detail.html"><img src="img/detail/detail-1.jpg"/></a>
							</div>
							<div class="swiper-slide">
								<img src="img/lunbo.jpg"/>
							</div>
						</div>
						
						<!-- 如果需要滚动条 -->
    					<div class="swiper-scrollbar"></div>
					</div>
				</div>
				<!--优惠-->
				<div class="middle">
					<div class="middle-title">
						<div class="middle-title-left">
							<img src="img/youhui.png" />
							<p>优惠团购</p>
						</div>
						<div class="middle-title-more">
							<a href="">
								<p>更多<i class="iconfont icon-you"></i></p>
							</a>
						</div>
						<div class="clear"></div>
					</div>
					<div class="middle-content">
						<div class="centent-picture fl">
							<a href=""><img src="img/youhui-1.jpg" /></a>
						</div>
						<div class="centent-picture fr">
							<a href=""><img src="img/youhui-2.jpg" /></a>
						</div>
						<div class="centent-picture fl">
							<a href=""><img src="img/youhui-3.jpg" /></a>
						</div>
						<div class="centent-picture fr">
							<a href=""><img src="img/youhui-4.jpg" /></a>
						</div>
						<div class="clear"></div>
					</div>
				</div>
				<!--猜你喜欢-->
				<div class="bottom">
					<div class="bottom-title">
						<div class="bottom-title-left">
							<img src="img/like.png" />
							<p>优惠团购</p>
						</div>
						<div class="bottom-title-more">
							<a href="">
								<p>更多<i class="iconfont icon-you"></i></p>
							</a>
						</div>
						<div class="clear"></div>
					</div>
					<div class="bottom-cnetent">
						<div class="centent-centent1">
							<div class="bottom-centnet-picture fl">
								<img src="img/like-1.jpg" />
							</div>
							<div class="bottom-centent-right fr">
								<p>&lt;100m</p><br />
								<p>已售1000</p>
							</div>
							<div class="bottom-centent-middle">
								<h6>万岁寿司(正佳店)</h6>
								<p>[100店通用]双人套餐</p>
								<span>¥88.00</span>
							</div>
						</div>
						<div class="clear"></div>
						<div class="centent-centent1">
							<div class="bottom-centnet-picture fl">
								<img src="img/like-2.jpg" />
							</div>
							<div class="bottom-centent-right fr">
								<p>&lt;100m</p><br />
								<p>已售1000</p>
							</div>
							<div class="bottom-centent-middle">
								<h6>周黑鸭(正佳店)</h6>
								<p>[100店通用]双人套餐</p>
								<span>¥88.00</span>
							</div>
						</div>
					</div>
				</div>
			</section>

			<!--尾-->
			<footer>
				<ul>
					<li class="active">
						<a href="">
							<i class="iconfont icon-noun28593cc"></i>
							<p>首页</p>
						</a>
					</li>
					<li>
						<a href="classification.html">
							<i class="iconfont icon-fl"></i>
							<p>分类</p>
						</a>
					</li>
					<li>
						<a href="find.html">
							<i class="iconfont icon-zhinanzhen"></i>
							<p>发现</p>
						</a>
					</li>
					<li>
						<a href="im.html">
							<i class="iconfont icon-ren"></i>
							<p>我的</p>
						</a>
					</li>
				</ul>
			</footer>
		</div>

		<script>
			document.body.style.height = window.innerHeight + "px";
		</script>
		
		<script>        
			var mySwiper = new Swiper ('.swiper-container', {
			    direction: 'horizontal',
			    loop: true,
			    
			    // 如果需要滚动条
			    scrollbar: '.swiper-scrollbar',
		})        
		</script>
		
		<script type="text/javascript">
			/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
//								字体大小 = 一个rem单位表示多少个像素*(设备宽度/ 设计图宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
			
		</script>
	</body>

</html>